/* Janus Chat - Version 1.0
 * Authors: Matthew Perry
 *          Michael Freid
 *          Marc Latou
 *          Richard Lee
 *
 * The Janus Chat Client is a highly secured
 * peer-to-peer chat client designed to facilitate
 * the transfer of sensitive data or as a communication
 * medium for the extra paranoid
 *
 * This file contains the header for the ConnectTab
 * QT class which allows the user to choose between server and
 * direct connections */

#ifndef CONNECTTAB_H
#define CONNECTTAB_H

#include <QWidget>
#include <QTabWidget>
#include "../lib/user.h"

namespace Ui {
    class ConnectTab;
}

class ConnectTab : public QWidget
{
    Q_OBJECT

    public:
        explicit ConnectTab(User* user, QWidget *parent = 0);
        ~ConnectTab();

    private:
        Ui::ConnectTab *ui;     /* Generated by QT to store all the UI elements */

        QTabWidget* myTabWidget;        /* The parent class */
        User* myUser;                   /* Pointer to a User object, simply for passing along */

    private slots:
        void buttonDirect_clicked(); /* Activated when Direct Connect is clicked */
        void buttonServer_clicked(); /* Activated when Server Connect is clicked */
};

#endif // CONNECTTAB_H
